package com.luocj.brvah_srl.adapter;

import android.content.Context;
import android.support.annotation.Nullable;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;
import com.luocj.brvah_srl.R;

import java.util.List;

/**
 * Created by Administrator on 2018/1/20/020.
 */

public class HomeAdapter extends BaseQuickAdapter<String, BaseViewHolder> {
    private Context mContext;

    public HomeAdapter(Context context, @Nullable List<String> data) {
        super(R.layout.item_home, data);
        this.mContext = context;
    }

    @Override
    protected void convert(BaseViewHolder holder, String item) {
        holder.setText(R.id.tv_home, item);
    }
}
